package com.example.xianzhi.service.impl;

import com.example.xianzhi.dao.AdSmallDao;
import com.example.xianzhi.dao.impl.AdSmallDaoImpl;
import com.example.xianzhi.entity.TbAdSmall;
import com.example.xianzhi.service.AdSmallService;

import java.util.List;

public class AdSmallServiceImpl implements AdSmallService {
    private AdSmallDao adSmallDao = new AdSmallDaoImpl();

    @Override
    public List<TbAdSmall> selectSmall(int goods_id) {
        return adSmallDao.selectSmall(goods_id);
    }

    @Override
    public int insertGoodsPic(String goods_pic_name, int goods_id) {
        return adSmallDao.insertGoodsPic(goods_pic_name,goods_id);
    }
}
